package top.yifengxiner.common.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import top.yifengxiner.common.core.pojo.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：baixiao
 * @date ：Created in 2021/4/30 16:24
 * @description：系统用户实体类
 * @modified By：
 * @version: 0.0.1$
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
public class SysUser extends BaseEntity
{
    /*用户ID*/
    @TableId(value = "user_id",type = IdType.AUTO)
    private Long userId;
    /*用户账号*/
    @TableField("user_name")
    private String userName;
    /*用户昵称*/
    @TableField("user_nick")
    private String userNick;
    /*密码*/
    @TableField("password")
    private String password;
    /*头像地址*/
    @TableField("avatar_url")
    private String avatarUrl;
    /*邮箱*/
    @TableField("email")
    private String email;
    /*电话号码*/
    @TableField("phone_number")
    private String phoneNumber;
    /*性别*/
    @TableField("sex")
    private char sex;
    /*用户状态*/
    @TableField("status")
    private char status;
    /*盐加密*/
    @TableField("salt")
    private String salt;
}
